home *** CD-ROM | disk | FTP | other *** search
/ Motor Sport Digital Archive Collection 1960s / Motor Sport Digital Archive Collection 1960s.iso / main.swf / scripts / model / PresentationModel.as
Encoding:
Text File  |  2008-05-21  |  10.1 KB  |  323 lines

  1. package model
  2. {
  3.    import flash.events.Event;
  4.    import flash.events.EventDispatcher;
  5.    import flash.events.IEventDispatcher;
  6.    import mx.collections.ArrayCollection;
  7.    import mx.events.PropertyChangeEvent;
  8.    
  9.    public class PresentationModel implements IEventDispatcher
  10.    {
  11.       private var _2064325476spreadString:String = null;
  12.       
  13.       private var _2038622590twoPageBack:Boolean = false;
  14.       
  15.       private var _1959326382yearString:String = null;
  16.       
  17.       private var _1713538862filePrefix:String = null;
  18.       
  19.       private var _711626417monthString:String = null;
  20.       
  21.       private var _bindingEventDispatcher:EventDispatcher;
  22.       
  23.       private var _1287145344pageString:String = null;
  24.       
  25.       private var _601380182currentYear:int = -1;
  26.       
  27.       private var _1448574688currentIssue:int = -1;
  28.       
  29.       private var _859611628imageURL:String = null;
  30.       
  31.       private var _114851798years:ArrayCollection;
  32.       
  33.       private var _601108392currentPage:int = -1;
  34.       
  35.       private var _1903192098numPages:int = -1;
  36.       
  37.       private var _1179159878issues:ArrayCollection;
  38.       
  39.       public function PresentationModel()
  40.       {
  41.          _1903192098numPages = -1;
  42.          _2038622590twoPageBack = false;
  43.          _601380182currentYear = -1;
  44.          _1448574688currentIssue = -1;
  45.          _601108392currentPage = -1;
  46.          _1959326382yearString = null;
  47.          _711626417monthString = null;
  48.          _1287145344pageString = null;
  49.          _2064325476spreadString = null;
  50.          _1713538862filePrefix = null;
  51.          _859611628imageURL = null;
  52.          _bindingEventDispatcher = new EventDispatcher(IEventDispatcher(this));
  53.          super();
  54.       }
  55.       
  56.       [Bindable(event="propertyChange")]
  57.       public function get twoPageBack() : Boolean
  58.       {
  59.          return this._2038622590twoPageBack;
  60.       }
  61.       
  62.       public function hasEventListener(param1:String) : Boolean
  63.       {
  64.          return _bindingEventDispatcher.hasEventListener(param1);
  65.       }
  66.       
  67.       public function set twoPageBack(param1:Boolean) : void
  68.       {
  69.          var _loc2_:Object = null;
  70.          _loc2_ = this._2038622590twoPageBack;
  71.          if(_loc2_ !== param1)
  72.          {
  73.             this._2038622590twoPageBack = param1;
  74.             dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"twoPageBack",_loc2_,param1));
  75.          }
  76.       }
  77.       
  78.       public function willTrigger(param1:String) : Boolean
  79.       {
  80.          return _bindingEventDispatcher.willTrigger(param1);
  81.       }
  82.       
  83.       [Bindable(event="propertyChange")]
  84.       public function get pageString() : String
  85.       {
  86.          return this._1287145344pageString;
  87.       }
  88.       
  89.       public function set pageString(param1:String) : void
  90.       {
  91.          var _loc2_:Object = null;
  92.          _loc2_ = this._1287145344pageString;
  93.          if(_loc2_ !== param1)
  94.          {
  95.             this._1287145344pageString = param1;
  96.             dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"pageString",_loc2_,param1));
  97.          }
  98.       }
  99.       
  100.       [Bindable(event="propertyChange")]
  101.       public function get imageURL() : String
  102.       {
  103.          return this._859611628imageURL;
  104.       }
  105.       
  106.       [Bindable(event="propertyChange")]
  107.       public function get currentPage() : int
  108.       {
  109.          return this._601108392currentPage;
  110.       }
  111.       
  112.       public function set years(param1:ArrayCollection) : void
  113.       {
  114.          var _loc2_:Object = null;
  115.          _loc2_ = this._114851798years;
  116.          if(_loc2_ !== param1)
  117.          {
  118.             this._114851798years = param1;
  119.             dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"years",_loc2_,param1));
  120.          }
  121.       }
  122.       
  123.       [Bindable(event="propertyChange")]
  124.       public function get monthString() : String
  125.       {
  126.          return this._711626417monthString;
  127.       }
  128.       
  129.       public function set currentYear(param1:int) : void
  130.       {
  131.          var _loc2_:Object = null;
  132.          _loc2_ = this._601380182currentYear;
  133.          if(_loc2_ !== param1)
  134.          {
  135.             this._601380182currentYear = param1;
  136.             dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"currentYear",_loc2_,param1));
  137.          }
  138.       }
  139.       
  140.       [Bindable(event="propertyChange")]
  141.       public function get yearString() : String
  142.       {
  143.          return this._1959326382yearString;
  144.       }
  145.       
  146.       public function set imageURL(param1:String) : void
  147.       {
  148.          var _loc2_:Object = null;
  149.          _loc2_ = this._859611628imageURL;
  150.          if(_loc2_ !== param1)
  151.          {
  152.             this._859611628imageURL = param1;
  153.             dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"imageURL",_loc2_,param1));
  154.          }
  155.       }
  156.       
  157.       [Bindable(event="propertyChange")]
  158.       public function get issues() : ArrayCollection
  159.       {
  160.          return this._1179159878issues;
  161.       }
  162.       
  163.       public function set numPages(param1:int) : void
  164.       {
  165.          var _loc2_:Object = null;
  166.          _loc2_ = this._1903192098numPages;
  167.          if(_loc2_ !== param1)
  168.          {
  169.             this._1903192098numPages = param1;
  170.             dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"numPages",_loc2_,param1));
  171.          }
  172.       }
  173.       
  174.       [Bindable(event="propertyChange")]
  175.       public function get filePrefix() : String
  176.       {
  177.          return this._1713538862filePrefix;
  178.       }
  179.       
  180.       public function set currentIssue(param1:int) : void
  181.       {
  182.          var _loc2_:Object = null;
  183.          _loc2_ = this._1448574688currentIssue;
  184.          if(_loc2_ !== param1)
  185.          {
  186.             this._1448574688currentIssue = param1;
  187.             dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"currentIssue",_loc2_,param1));
  188.          }
  189.       }
  190.       
  191.       public function set spreadString(param1:String) : void
  192.       {
  193.          var _loc2_:Object = null;
  194.          _loc2_ = this._2064325476spreadString;
  195.          if(_loc2_ !== param1)
  196.          {
  197.             this._2064325476spreadString = param1;
  198.             dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"spreadString",_loc2_,param1));
  199.          }
  200.       }
  201.       
  202.       public function addEventListener(param1:String, param2:Function, param3:Boolean = false, param4:int = 0, param5:Boolean = false) : void
  203.       {
  204.          _bindingEventDispatcher.addEventListener(param1,param2,param3,param4,param5);
  205.       }
  206.       
  207.       public function dispatchEvent(param1:Event) : Boolean
  208.       {
  209.          return _bindingEventDispatcher.dispatchEvent(param1);
  210.       }
  211.       
  212.       public function set currentPage(param1:int) : void
  213.       {
  214.          var _loc2_:Object = null;
  215.          _loc2_ = this._601108392currentPage;
  216.          if(_loc2_ !== param1)
  217.          {
  218.             this._601108392currentPage = param1;
  219.             dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"currentPage",_loc2_,param1));
  220.          }
  221.       }
  222.       
  223.       public function removeEventListener(param1:String, param2:Function, param3:Boolean = false) : void
  224.       {
  225.          _bindingEventDispatcher.removeEventListener(param1,param2,param3);
  226.       }
  227.       
  228.       [Bindable(event="propertyChange")]
  229.       public function get currentYear() : int
  230.       {
  231.          return this._601380182currentYear;
  232.       }
  233.       
  234.       public function set yearString(param1:String) : void
  235.       {
  236.          var _loc2_:Object = null;
  237.          _loc2_ = this._1959326382yearString;
  238.          if(_loc2_ !== param1)
  239.          {
  240.             this._1959326382yearString = param1;
  241.             dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"yearString",_loc2_,param1));
  242.          }
  243.       }
  244.       
  245.       [Bindable(event="propertyChange")]
  246.       public function get years() : ArrayCollection
  247.       {
  248.          return this._114851798years;
  249.       }
  250.       
  251.       [Bindable(event="propertyChange")]
  252.       public function get numPages() : int
  253.       {
  254.          return this._1903192098numPages;
  255.       }
  256.       
  257.       [Bindable(event="propertyChange")]
  258.       public function get currentIssue() : int
  259.       {
  260.          return this._1448574688currentIssue;
  261.       }
  262.       
  263.       public function set monthString(param1:String) : void
  264.       {
  265.          var _loc2_:Object = null;
  266.          _loc2_ = this._711626417monthString;
  267.          if(_loc2_ !== param1)
  268.          {
  269.             this._711626417monthString = param1;
  270.             dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"monthString",_loc2_,param1));
  271.          }
  272.       }
  273.       
  274.       public function set filePrefix(param1:String) : void
  275.       {
  276.          var _loc2_:Object = null;
  277.          _loc2_ = this._1713538862filePrefix;
  278.          if(_loc2_ !== param1)
  279.          {
  280.             this._1713538862filePrefix = param1;
  281.             dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"filePrefix",_loc2_,param1));
  282.          }
  283.       }
  284.       
  285.       [Bindable(event="propertyChange")]
  286.       public function get spreadString() : String
  287.       {
  288.          return this._2064325476spreadString;
  289.       }
  290.       
  291.       public function clone() : PresentationModel
  292.       {
  293.          var _loc1_:PresentationModel = null;
  294.          _loc1_ = new PresentationModel();
  295.          _loc1_.years = years;
  296.          _loc1_.issues = issues;
  297.          _loc1_.numPages = numPages;
  298.          _loc1_.twoPageBack = twoPageBack;
  299.          _loc1_.currentYear = currentYear;
  300.          _loc1_.currentIssue = currentIssue;
  301.          _loc1_.currentPage = currentPage;
  302.          _loc1_.yearString = yearString;
  303.          _loc1_.monthString = monthString;
  304.          _loc1_.spreadString = spreadString;
  305.          _loc1_.filePrefix = filePrefix;
  306.          _loc1_.imageURL = imageURL;
  307.          return _loc1_;
  308.       }
  309.       
  310.       public function set issues(param1:ArrayCollection) : void
  311.       {
  312.          var _loc2_:Object = null;
  313.          _loc2_ = this._1179159878issues;
  314.          if(_loc2_ !== param1)
  315.          {
  316.             this._1179159878issues = param1;
  317.             dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"issues",_loc2_,param1));
  318.          }
  319.       }
  320.    }
  321. }
  322.  
  323.